package nautilus.moneykeeper.dto;

public class Category extends NamedObject{
	
	/*
	 * 0: income
	 * 1: outcome
	 * 2: both of above
	 * 
	 * */
	private int _direction = 0;
	
	public Category(){
		_id = 0;
		_name = null;
	}
	
	public Category(long id, String name){
		_id = id;
		_name = name;
	}
	
	/**
	 * @description: This Category is of income or outcome or both
	 * 0: income
	 * 1: outcome
	 * 2: both of above
	 */
	public void setDirection(int direction){
		_direction = direction;
	}
	
	/**
	 * @description: This Category is of income or outcome or both
	 * 0: income
	 * 1: outcome
	 * 2: both of above
	 */
	public int getDirection(){
		return _direction;
	}
}
